package yyy.ab.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "ab")
public class AbProperties {
    /**
     * 是否在控制台打印 sql语句
     */
    private boolean showsql = true;

    /**
     * AOP记录用户操作日志，true开启，false关闭
     */
    private boolean openAopLog = true;

    public boolean isShowsql() {
        return showsql;
    }

    public void setShowsql(boolean showsql) {
        this.showsql = showsql;
    }

    public boolean isOpenAopLog() {
        return openAopLog;
    }

    public void setOpenAopLog(boolean openAopLog) {
        this.openAopLog = openAopLog;
    }
}
